package com.shunda.ysdgj.model.entity.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shunda.ysdgj.model.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@TableName("ysdgj_sys_menu")
@Schema(description = "系统菜单")
public class SysMenu extends BaseEntity {
    @Schema(description = "父菜单ID 一级菜单为0")
    private Long parentId;

    @Schema(description = "菜单名称")
    private String menuName;

    @Schema(description = "后端路径")
    private String menuPath;

    @Schema(description = "菜单状态 1正常 0禁用")
    private Integer menuStatus;

    @Schema(description = "菜单排序 数字越小越靠前")
    private Integer menuSort;

    @Schema(description = "前端路由名")
    private String routeName;

    @TableField(exist = false)
    @Schema(description = "子菜单")
    @Hidden
    private List<SysMenu> children;
}
